package com.zhs.base.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 百度
 * @author Java架构师之旅
 * @version 1.0
 * @date 2022/8/16 17:06
 */
@Data
@ConfigurationProperties(prefix = "map.baidu")
public class BaiduMapProperties extends BaseProperties{
    /**
     * 百度地图API ak
     */
    public String baiduKey;
    /**
     * 百度API 地址编码的URL
     */
    private String baiduGeoUrl = "https://api.map.baidu.com/geocoding/v3/?output=json&ret_coordtype=gcj02ll&address=";
    /**
     * 百度API 逆地址编码的URL
     */
    private String baiduReGeoUrl = "https://api.map.baidu.com/reverse_geocoding/v3/?output=json&coordtype=gcj02ll&ret_coordtype=gcj02ll&extensions_town=true&location=";
}
